package com.nervenets.web.hibernate.domain;

import com.nervenets.web.enumeration.CheckStatus;
import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 楼盘活动
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BuildPromotion extends DomainObject {
    private long managerId;
    private long buildingId;
    private String title;
    private String cover;
    @Column(columnDefinition = "text")
    private String content;
    private boolean enable;
    private int queue;
    @Column(columnDefinition = "tinyint")
    private CheckStatus checkStatus = CheckStatus.checking;
    private String remark;
}
